import request from '@/utils/request';

// 回测
export function searchProfit(query) {
  return request({
    url: '/trade/profit/search',
    method: 'get',
    params: query
  })
}

// 查询交易记录
export function getTrades(id) {
    return request({
      url: '/trade/profit/trades/' + id,
      method: 'get'
    })
}